#define _CRT_SECURE_NO_WARNINGS 1
//https://pintia.cn/problem-sets/994805046380707840/exam/problems/994805062432309248?type=7&page=1
#include<iostream>
#include<queue>
#include<iomanip>
#define endl '\n'
using namespace std;
int n,k,m;
double sc[11]={0};
double mmax=-1e6,mmin=1e6;
priority_queue<double,vector<double>,less<double> >q;

void print(int depth){
    if(depth==m+1)
        return;
    double ans=q.top();
    q.pop();
    print(depth+1);
    cout<<fixed<<setprecision(3)<<ans;
    if(depth!=1)
        cout<<' ';
}

int main(){
    ios::sync_with_stdio(0);
    cin>>n>>k>>m;
    for(int i=1;i<=n;i++){
        for(int j=1;j<=k;j++){
            cin>>sc[j];
            sc[0]+=sc[j];
            mmax=max(mmax,sc[j]);
            mmin=min(mmin,sc[j]);
        }
        sc[0]=sc[0]-mmax-mmin;
        q.push(sc[0]/(k-2));
        mmax=-1e6,mmin=1e6;
        sc[0]=0;
    }
    print(1);
    return 0;
}
